<template>
  <div class="box">
    <video :src="$route.query.url" controls autoplay class="videos"></video>
    <div class="icon" @click="onclick"><van-icon  name="arrow-left"/> <span>返回</span></div>
  </div>
</template>

<script>
export default {
name: "VideoDetail",
  created() {
  },
  methods:{
    onclick() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped lang="less">
.box{
  position: relative;
}
.icon{
  margin-left: 15px;
  position: absolute;
  top: 1%;
  font-size: 20px;
  color: white;
  z-index: 2;
  >span {
    font-size: 18px;
    position: relative;
    left: -6px;
    top: -1px;
  }
}
.videos{
  width: 100%;
  height: 100vh;
  background-color: black;
}
</style>